using System.Collections.Generic;

using Xc.DataAccess.AepCoapCore.Models.Apis.Core;

namespace Xc.DataAccess.AepCoapCore.Models.Apis
{
    class Aep_order
    {
        //参数body: 类型json, 参数不可以为空
        //  描述:body,具体参考平台api说明
        public static string createOrder(string appKey, string appSecret, string body)
        {
            string path = "/Aep_order/aeporder/order/v1/create";
            Dictionary<string, string> headers = null;
            Dictionary<string, string> param = null;
            string version = "20190822094523";

            string application = appKey;
            string key = appSecret;


            string response = AepHttpRequest.SendAepHttpRequest(path, headers, param, body, version, application, null, key, "POST");
            if (response != null)
                return response;
            return null;
        }
        //参数body: 类型json, 参数不可以为空
        //  描述:body,具体参考平台api说明
        public static string createRenewOrder(string appKey, string appSecret, string body)
        {
            string path = "/Aep_order/aeporder/order/v1/renew";
            Dictionary<string, string> headers = null;
            Dictionary<string, string> param = null;
            string version = "20190822094527";

            string application = appKey;
            string key = appSecret;


            string response = AepHttpRequest.SendAepHttpRequest(path, headers, param, body, version, application, null, key, "POST");
            if (response != null)
                return response;
            return null;
        }
        //参数body: 类型json, 参数不可以为空
        //  描述:body,具体参考平台api说明
        public static string renewPrice(string appKey, string appSecret, string body)
        {
            string path = "/Aep_order/aeporder/order/v1/renewPrice";
            Dictionary<string, string> headers = null;
            Dictionary<string, string> param = null;
            string version = "20190822094532";

            string application = appKey;
            string key = appSecret;


            string response = AepHttpRequest.SendAepHttpRequest(path, headers, param, body, version, application, null, key, "POST");
            if (response != null)
                return response;
            return null;
        }
        //参数body: 类型json, 参数不可以为空
        //  描述:body,具体参考平台api说明
        public static string orderCanceApply(string appKey, string appSecret, string body)
        {
            string path = "/Aep_order/aeporder/order/v1/orderCanceApply";
            Dictionary<string, string> headers = null;
            Dictionary<string, string> param = null;
            string version = "20190822094516";

            string application = appKey;
            string key = appSecret;


            string response = AepHttpRequest.SendAepHttpRequest(path, headers, param, body, version, application, null, key, "POST");
            if (response != null)
                return response;
            return null;
        }
        //参数body: 类型json, 参数不可以为空
        //  描述:body,具体参考平台api说明
        public static string pay(string appKey, string appSecret, string body)
        {
            string path = "/Aep_order/aeporder/order/v1/pay";
            Dictionary<string, string> headers = null;
            Dictionary<string, string> param = null;
            string version = "20190822094538";

            string application = appKey;
            string key = appSecret;


            string response = AepHttpRequest.SendAepHttpRequest(path, headers, param, body, version, application, null, key, "POST");
            if (response != null)
                return response;
            return null;
        }
        //参数body: 类型json, 参数不可以为空
        //  描述:body,具体参考平台api说明
        public static string refundInfo(string appKey, string appSecret, string body)
        {
            string path = "/Aep_order/aeporder/order/v1/refundInfo";
            Dictionary<string, string> headers = null;
            Dictionary<string, string> param = null;
            string version = "20190822094544";

            string application = appKey;
            string key = appSecret;


            string response = AepHttpRequest.SendAepHttpRequest(path, headers, param, body, version, application, null, key, "POST");
            if (response != null)
                return response;
            return null;
        }
        //参数body: 类型json, 参数不可以为空
        //  描述:body,具体参考平台api说明
        public static string createRefundOrder(string appKey, string appSecret, string body)
        {
            string path = "/Aep_order/aeporder/order/v1/refund/order";
            Dictionary<string, string> headers = null;
            Dictionary<string, string> param = null;
            string version = "20190822094553";

            string application = appKey;
            string key = appSecret;


            string response = AepHttpRequest.SendAepHttpRequest(path, headers, param, body, version, application, null, key, "POST");
            if (response != null)
                return response;
            return null;
        }
        //参数body: 类型json, 参数不可以为空
        //  描述:body,具体参考平台api说明
        public static string price(string appKey, string appSecret, string body)
        {
            string path = "/Aep_order/aeporder/order/v1/price";
            Dictionary<string, string> headers = null;
            Dictionary<string, string> param = null;
            string version = "20190822094559";

            string application = appKey;
            string key = appSecret;


            string response = AepHttpRequest.SendAepHttpRequest(path, headers, param, body, version, application, null, key, "POST");
            if (response != null)
                return response;
            return null;
        }

    }
}
